package com.todo.biz.iface.backend.request;

import com.todo.common.common.entity.CurrentStaff;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * @author zhangwenxiang
 * @date 2024/3/5 18:49
 * @description
 */
@Data
@Schema(title = "追加集合关联信息", description = "追加集合关联信息")
public class AppendCollectRelationReq {

private CurrentStaff _staff;
    /**
     * 集合id
     */
    @Schema(title = "集合id", description = "集合id")
    private Long setId;
    /**
     * 关联id
     */
    @Schema(title = "关联id", description = "关联id")
    private Long relationId;
    /**
     * 排序
     */
    @Schema(title = "排序", description = "排序")
    private Integer sort = 0;

    public boolean baseCheck() {
        if (setId == null || relationId == null) {
            return false;
        }
        return true;
    }
}
